jsimport = function(url) {
    var _head = document.getElementsByTagName("head")[0];         
    var _script = document.createElement('script');
    _script.type = 'text/javascript';
    _script.src = url;
    _head.appendChild(_script);
}
//method to divide the code in multiple files
//and creation of classes
jsimport("../js/sugar.js");
jsimport("../js/World.js");

var world;
//I suppose the class world is the class which containes the whole world
//it initialises the context canvas and starts the timer.
//The file sugar makes it easier to implement OOPs. I think we'll have a file for a class and 
//as javascript is a dynamic language all we need is creation of classes and inheritance which can be implemented through the added sugar!
function init(){
	world = new World();
}



